<template>
  <div>
    <a-card :bordered='false'>
      <a-tabs @change='tabClick' :defaultActiveKey='current' v-model='current' style='margin-top: -25px'>
        <a-tab-pane tab='资保金余额查询' key='form1'>
          <tab1 ref='form1' v-if="current=='form1'"></tab1>
        </a-tab-pane>
      </a-tabs>
    </a-card>
  </div>
</template>
<script>

import Tab1 from "./tab1"

export default {
  name: "Tabs",
  components: { Tab1 },
  data() {
    let me = this
    return {
      //列表初始化查询参数
      queryParam: {},
      current: "form1",
      forms: [
        "form1",
        "form2"
      ]
    }
  },
  created() {
  },
  methods: {
    tabClick(name) {
      this.current = name
      this.$nextTick(() => {
        this.searchHandler(name)
      })
    },
    searchHandler(searchParams) {
      //this.$refs[this.current].searchTable(searchParams)
    }
  }
}
</script>
